package com.doudou.collection.dao.mapper;

import com.doudou.collection.orm.entity.Comments;
import com.doudou.collection.orm.vo.CommentBlogVO;
import com.doudou.collection.orm.vo.CommentPersonalVO;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * @ClassName CommentsMapper<br>
 * @Description 评论Mapper类<br>
 * @Author 高绮雯<br>
 * @Date 2023/6/23 20:02<br>
 * @Version 1.0<br>
 */
@Repository
public interface CommentsMapper {

    /**发布评论*/
    int insertComment(Comments comments);

    /**根据评论id删除评论*/
    void deleteById(Long id);

    /**文章中评论展示*/
    List<CommentBlogVO> selectAllById(Long id);

    /**个人所有评论展示*/
    List<CommentPersonalVO> selectPersonalAll(Long id);






}
